package com.mixsmart.commonweb.bean.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.mixsmart.commonweb.bean.IPKStringBean;

/**
 * 角色用户关联实体
 * @author lmq
 * @version 1.0
 * @since JDK版本大于等于1.6
 * 2016年2月1日
 */
@Entity
@Table(name="t_c_role_user")
public class TCRoleUser implements IPKStringBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3535974203092544634L;

	private String id;
	
	private String roleId;
	
	private String userId;

	public TCRoleUser() {
		super();
	}

	public TCRoleUser(String roleId, String userId) {
		this.roleId = roleId;
		this.userId = userId;
	}

	public TCRoleUser(String id, String roleId, String userId) {
		this.id = id;
		this.roleId = roleId;
		this.userId = userId;
	}

	@Id
	@Column(name="id", length=50)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name="role_id", length=50, nullable=false)
	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	@Column(name="user_id", length=50, nullable=false)
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
}
